home *** CD-ROM | disk | FTP | other *** search
/ Pro One: Netcracker Netscape Navigator / ProOne: Netcracker Netscape Navigator.iso / pc / nc / ncs04010.geo / 00026.ls < prev    next >
Encoding:
Text File  |  1997-03-19  |  16.2 KB  |  771 lines

  1. on initLesson
  2.   setRollName(EMPTY)
  3.   set the visible of sprite 48 to 0
  4.   Set_BACKSprite(47)
  5.   Set_NEXTSprite(46)
  6.   Set_HelpSprite(45)
  7.   Set_SoundSprite(44)
  8.   Set_NOTEPADSprite(43)
  9.   Set_GLOSSARYSprite(42)
  10.   setTimer(30)
  11.   set_MarkSprite(2)
  12.   Set_NavigatorHL(5)
  13.   Set_MainSprite(6)
  14.   Set_IndexSprite(7)
  15.   Set_FindSprite(9)
  16.   Set_TagWDSprite(8)
  17.   repeat with i = 42 to 47
  18.     set the immediate of sprite i to 1
  19.     set the puppet of sprite i to 1
  20.   end repeat
  21.   set the puppet of sprite get_NavigatorHL() to 1
  22.   set the mouseDownScript to "CheckOpenWindow"
  23. end
  24.  
  25. on CheckForTagWd
  26.   global TagWD, IndexWD, FindWD, WordWD, Find2WD
  27.   if objectp(TagWD) or objectp(IndexWD) or objectp(FindWD) or objectp(Find2WD) or objectp(WordWD) then
  28.     set the cursor of sprite 48 to [400, 401]
  29.   end if
  30. end
  31.  
  32. on PlaySound theSnd
  33.   global PCDEL
  34.   if Get_PlayDub() then
  35.     sound playFile 2, the pathName & "NCS_SND" & PCDEL & theSnd
  36.   end if
  37. end
  38.  
  39. on GoMain
  40.   go(1, "NC_MM010.GEO")
  41. end
  42.  
  43. on GoFind
  44.   global FindWD, CDfilePath, PCDEL
  45.   if objectp(FindWD) then
  46.     forget(FindWD)
  47.   end if
  48.   set the cursor of sprite 48 to [400, 401]
  49.   set FindWD to window (CDfilePath & "WDS" & PCDEL & "NC_FIND.GEO")
  50.   set the rect of FindWD to rect(the stageLeft + 221, the stageTop + 4, the stageLeft + 541, the stageTop + 164)
  51.   set the titleVisible of FindWD to 0
  52.   set the modal of FindWD to 1
  53.   open(FindWD)
  54. end
  55.  
  56. on HideFINDWindow
  57.   global FindWD
  58.   if objectp(FindWD) then
  59.     forget(FindWD)
  60.   end if
  61. end
  62.  
  63. on closeFindWindow
  64.   global FindWD
  65.   if objectp(FindWD) then
  66.     forget(FindWD)
  67.   end if
  68.   set the cursor of sprite 48 to 0
  69.   tell the stage
  70.     continue()
  71.   end tell
  72. end
  73.  
  74. on OpenFind2WD theData
  75.   global Find2WD, CDfilePath, PCDEL
  76.   HideFINDWindow()
  77.   set Find2WD to window (CDfilePath & "WDS" & PCDEL & "NC_FIND2.GEO")
  78.   set the rect of Find2WD to rect(the stageLeft + 48, the stageTop + 4, the stageLeft + 541, the stageTop + 212)
  79.   set the titleVisible of Find2WD to 0
  80.   set the modal of Find2WD to 1
  81.   tell Find2WD
  82.     UpdateSelection(theData)
  83.   end tell
  84.   open(Find2WD)
  85. end
  86.  
  87. on CloseFind2Window
  88.   global Find2WD
  89.   if objectp(Find2WD) then
  90.     forget(Find2WD)
  91.   end if
  92.   set the cursor of sprite 48 to 0
  93.   tell the stage
  94.     continue()
  95.   end tell
  96. end
  97.  
  98. on GoIndex
  99.   global IndexWD, CDfilePath, PCDEL
  100.   if objectp(IndexWD) then
  101.     forget(IndexWD)
  102.   end if
  103.   set the cursor of sprite 48 to [400, 401]
  104.   set IndexWD to window (CDfilePath & "WDS" & PCDEL & "NC_INDEX.GEO")
  105.   set the rect of IndexWD to rect(the stageLeft + 220, the stageTop + 4, the stageLeft + 541, the stageTop + 276)
  106.   set the titleVisible of IndexWD to 0
  107.   set the modal of IndexWD to 1
  108.   tell IndexWD
  109.     RonenInit()
  110.   end tell
  111.   open(IndexWD)
  112. end
  113.  
  114. on OpenWordWD theData
  115.   global WordWD, CDfilePath, PCDEL
  116.   HIdeIndexWindow()
  117.   set WordWD to window (CDfilePath & "WDS" & PCDEL & "NC_WORD.GEO")
  118.   set the rect of WordWD to rect(the stageLeft + 48, the stageTop + 4, the stageLeft + 541, the stageTop + 212)
  119.   set the titleVisible of WordWD to 0
  120.   set the modal of WordWD to 1
  121.   tell WordWD
  122.     UpdateSelection(theData)
  123.   end tell
  124.   open(WordWD)
  125. end
  126.  
  127. on CloseWordWindow
  128.   global WordWD
  129.   if objectp(WordWD) then
  130.     forget(WordWD)
  131.   end if
  132.   set the cursor of sprite 48 to 0
  133.   tell the stage
  134.     continue()
  135.   end tell
  136. end
  137.  
  138. on HIdeIndexWindow
  139.   global IndexWD
  140.   if objectp(IndexWD) then
  141.     forget(IndexWD)
  142.   end if
  143. end
  144.  
  145. on CloseIndexWindow
  146.   global IndexWD
  147.   if objectp(IndexWD) then
  148.     forget(IndexWD)
  149.   end if
  150.   set the cursor of sprite 48 to 0
  151.   tell the stage
  152.     continue()
  153.   end tell
  154. end
  155.  
  156. on GoIndexMovie thekind
  157.   if thekind = "tool" then
  158.     go("Init" & Get_ScreenSubject(), Get_IndexMovie())
  159.   else
  160.     go(1, Get_IndexMovie())
  161.   end if
  162. end
  163.  
  164. on set_IndexMovie theMoov
  165.   global IndexMovie
  166.   set IndexMovie to theMoov
  167. end
  168.  
  169. on Get_IndexMovie theMoov
  170.   global IndexMovie
  171.   return IndexMovie
  172. end
  173.  
  174. on GoTags
  175.   global TagWD, TAGS_DATA, TAGS_TITLES, TAGS_LIST, CDfilePath, PCDEL
  176.   if objectp(TagWD) then
  177.     forget(TagWD)
  178.   end if
  179.   set the cursor of sprite 48 to [400, 401]
  180.   set TagWD to window (CDfilePath & "WDS" & PCDEL & "NC_TAGS.GEO")
  181.   set the rect of TagWD to rect(the stageLeft + 274, the stageTop + 4, the stageLeft + 539, the stageTop + 249)
  182.   set the titleVisible of TagWD to 0
  183.   set the modal of TagWD to 1
  184.   tell TagWD
  185.     UpdateFields()
  186.     PlaceMySlider()
  187.     init()
  188.   end tell
  189.   open(TagWD)
  190. end
  191.  
  192. on OpenRenameWD theLine
  193.   global RenameWD, CDfilePath, PCDEL
  194.   set RenameWD to window (CDfilePath & "WDS" & PCDEL & "NC_RNAME.GEO")
  195.   set the rect of RenameWD to rect(the stageLeft + 286, the stageTop + 87, the stageLeft + 526, the stageTop + 199)
  196.   set the titleVisible of RenameWD to 0
  197.   set the modal of RenameWD to 1
  198.   tell RenameWD
  199.     UpdateLine(theLine)
  200.   end tell
  201.   open(RenameWD)
  202. end
  203.  
  204. on UpdateRenameWD theText
  205.   global TagWD
  206.   tell TagWD
  207.     UpdateRename(theText)
  208.   end tell
  209.   CloseRenameWD()
  210. end
  211.  
  212. on CloseRenameWD
  213.   global RenameWD
  214.   if objectp(RenameWD) then
  215.     forget(RenameWD)
  216.   end if
  217. end
  218.  
  219. on OpenSureWD
  220.   global SureWD, CDfilePath, PCDEL
  221.   set SureWD to window (CDfilePath & "WDS" & PCDEL & "NC_SURE.GEO")
  222.   set the rect of SureWD to rect(the stageLeft + 286, the stageTop + 87, the stageLeft + 526, the stageTop + 199)
  223.   set the titleVisible of SureWD to 0
  224.   set the modal of SureWD to 1
  225.   open(SureWD)
  226. end
  227.  
  228. on CloseSureWD
  229.   global SureWD
  230.   if objectp(SureWD) then
  231.     forget(SureWD)
  232.   end if
  233. end
  234.  
  235. on ClearAllTags
  236.   global CardTitles, TAGS_DATA, TAGS_TITLES, TAGS_LIST, TagWD
  237.   CloseSureWD()
  238.   set TAGS_LIST to []
  239.   set TAGS_TITLES to EMPTY
  240.   set TAGS_DATA to EMPTY
  241.   tell TagWD
  242.     UpdateFields()
  243.     PlaceMySlider()
  244.     init()
  245.   end tell
  246.   updateStage()
  247. end
  248.  
  249. on CloseTagWindow
  250.   global TagWD
  251.   if objectp(TagWD) then
  252.     forget(TagWD)
  253.   end if
  254.   set the cursor of sprite 48 to 0
  255.   tell the stage
  256.     continue()
  257.   end tell
  258. end
  259.  
  260. on GoTagMovie
  261.   go("Init" & Get_ScreenSubject(), Get_TagMovie())
  262. end
  263.  
  264. on Set_TagMovie theMovie
  265.   global TagMovie
  266.   set TagMovie to theMovie
  267. end
  268.  
  269. on Get_TagMovie
  270.   global TagMovie
  271.   return TagMovie
  272. end
  273.  
  274. on MarkScreen toMark
  275. end
  276.  
  277. on UpdateMark
  278.   global TAGS_LIST
  279.   set movieName to the movieName
  280.   if getOne(TAGS_LIST, movieName) then
  281.   end if
  282. end
  283.  
  284. on HandleSound
  285.   global volumeWindow, CDfilePath, PCDEL
  286.   if objectp(volumeWindow) then
  287.     forget(volumeWindow)
  288.   end if
  289.   EnableBtn("SOUND", get_SOUNDSprite())
  290.   set volumeWindow to window (CDfilePath & "WDS" & PCDEL & "NC_VOL.GEO")
  291.   set the rect of volumeWindow to rect(the stageLeft + 445, the stageTop + 63, the stageLeft + 574, the stageTop + 126)
  292.   set the titleVisible of volumeWindow to 0
  293.   tell volumeWindow
  294.     RestoreSoundStatus()
  295.   end tell
  296.   open(volumeWindow)
  297. end
  298.  
  299. on handleQuit
  300.   global QuitWindow, CDfilePath, PCDEL
  301.   cursor(4)
  302.   if objectp(QuitWindow) then
  303.     forget(QuitWindow)
  304.   end if
  305.   set the cursor of sprite 48 to [400, 401]
  306.   set QuitWindow to window (CDfilePath & "WDS" & PCDEL & "NC_QUIT.GEO")
  307.   set the rect of QuitWindow to rect(the stageLeft + 162, the stageTop + 122, the stageLeft + 478, the stageTop + 358)
  308.   set the titleVisible of QuitWindow to 0
  309.   set the modal of QuitWindow to 1
  310.   open(QuitWindow)
  311. end
  312.  
  313. on handleHELP
  314.   EnableBtn("HELP", get_HELPSprite())
  315.   openHelpWd()
  316. end
  317.  
  318. on openHelpWd
  319.   global helpWD, lastFrame, CDfilePath, PCDEL
  320.   set the cursor of sprite 48 to [400, 401]
  321.   set helpWD to window (CDfilePath & "WDS" & PCDEL & "NC_HLP.GEO")
  322.   set the rect of helpWD to rect(the stageLeft + 62, the stageTop + 28, the stageLeft + 586, the stageTop + 444)
  323.   set the titleVisible of helpWD to 0
  324.   set the modal of helpWD to 1
  325.   open(helpWD)
  326.   set lastFrame to the frame
  327.   go("helpLoop")
  328. end
  329.  
  330. on closeHelpWd
  331.   global helpWD, lastFrame
  332.   set the cursor of sprite 48 to 0
  333.   forget(helpWD)
  334.   go(lastFrame)
  335. end
  336.  
  337. on HandleNEXT
  338.   GoNext()
  339.   EnableBtn("NEXT", get_NEXTSprite())
  340. end
  341.  
  342. on HandleBACK
  343.   EnableBtn("BACK", get_BACKSprite())
  344.   EnableBtn("NEXT", get_NEXTSprite())
  345.   Set_NEXT(2)
  346.   sound stop 2
  347.   go("start")
  348. end
  349.  
  350. on HandleGLOSSARY
  351.   global DicWindow
  352.   EnableBtn("GLOSSARY", Get_GLOSSARYSprite())
  353.   set the cursor of sprite 48 to [400, 401]
  354.   open(DicWindow)
  355.   tell the stage
  356.     pause()
  357.   end tell
  358.   tell DicWindow
  359.     go(2)
  360.   end tell
  361. end
  362.  
  363. on closeGLOSSARYwindow
  364.   set the cursor of sprite 48 to 0
  365.   continue()
  366. end
  367.  
  368. on closeNotePadWindow
  369.   set the cursor of sprite 48 to 0
  370.   continue()
  371. end
  372.  
  373. on HandleNOTEPAD
  374.   global NoteBookWindow, CDfilePath, PCDEL
  375.   EnableBtn("NOTEPAD", Get_NOTEPADSprite())
  376.   set the cursor of sprite 48 to [400, 401]
  377.   if objectp(NoteBookWindow) then
  378.     forget(NoteBookWindow)
  379.   end if
  380.   set NoteBookWindow to window (CDfilePath & "WDS" & PCDEL & "NC_PAD.GEO")
  381.   set the rect of NoteBookWindow to rect(the stageLeft + 7, the stageTop + 247, the stageLeft + 209, the stageTop + 419)
  382.   set NBRect to the rect of NoteBookWindow
  383.   set x1 to getAt(NBRect, 1)
  384.   set y1 to getAt(NBRect, 2)
  385.   set x2 to getAt(NBRect, 3)
  386.   set y2 to getAt(NBRect, 4)
  387.   set the modal of NoteBookWindow to 1
  388.   set the windowType of NoteBookWindow to 2
  389.   set the titleVisible of window "NoteBook" to 0
  390.   open(NoteBookWindow)
  391. end
  392.  
  393. on createNoteBook
  394.   global NBPrintWindow, CDfilePath, PCDEL
  395.   if objectp(NBPrintWindow) then
  396.     forget(NBPrintWindow)
  397.   end if
  398.   set NBPrintWindow to window (CDfilePath & "WDS" & PCDEL & "NC_PRINT.GEO")
  399.   set StageRect to the rect of the stage
  400.   set x1 to getAt(StageRect, 1)
  401.   set y1 to getAt(StageRect, 2)
  402.   set x2 to getAt(StageRect, 3)
  403.   set y2 to getAt(StageRect, 4)
  404.   set the rect of NBPrintWindow to rect(x1, y1, x1 + 640, y1 + 480)
  405.   set NBRect to the rect of NBPrintWindow
  406.   set the fileName of NBPrintWindow to "Auto Page SetUp"
  407.   set the windowType of NBPrintWindow to 2
  408.   open(NBPrintWindow)
  409. end
  410.  
  411. on closePrintWindow
  412. end
  413.  
  414. on closeQuitWindow
  415.   global QuitWindow
  416.   set the cursor of sprite 48 to 0
  417.   forget(QuitWindow)
  418.   continue()
  419. end
  420.  
  421. on leaveApplication
  422.   global QuitWindow, UsersData, TheBackWindow
  423.   forget(QuitWindow)
  424.   if the machineType <> 256 then
  425.   end if
  426.   quit()
  427. end
  428.  
  429. on keyDown
  430.   if not get_Disabled() then
  431.     if the commandDown and ((the key = "q") or (the key = ".")) then
  432.       handleQuit()
  433.     else
  434.       if (the keyCode = 76) or (the keyCode = 36) then
  435.         HandleNEXT()
  436.       else
  437.         pass()
  438.       end if
  439.     end if
  440.   end if
  441. end
  442.  
  443. on CheckOpenWindow
  444.   global volumeWindow
  445.   if objectp(volumeWindow) then
  446.     forget(volumeWindow)
  447.     continue()
  448.   end if
  449. end
  450.  
  451. on CheckRollOver
  452.   if rollOver(get_IndexSprite()) then
  453.     set the castNum of sprite get_NavigatorHL() to the number of cast "Index-HL"
  454.     set Hloc to the locH of sprite get_IndexSprite()
  455.     set Vloc to the locV of sprite get_IndexSprite()
  456.   else
  457.     if rollOver(get_FindSprite()) then
  458.       set the castNum of sprite get_NavigatorHL() to the number of cast "Find-HL"
  459.       set Hloc to the locH of sprite get_FindSprite()
  460.       set Vloc to the locV of sprite get_FindSprite()
  461.     else
  462.       if rollOver(Get_TagWdSprite()) then
  463.         set the castNum of sprite get_NavigatorHL() to the number of cast "TagWD-HL"
  464.         set Hloc to the locH of sprite Get_TagWdSprite()
  465.         set Vloc to the locV of sprite Get_TagWdSprite()
  466.       else
  467.         set Hloc to EMPTY
  468.       end if
  469.     end if
  470.   end if
  471.   if Hloc <> EMPTY then
  472.     set the locH of sprite get_NavigatorHL() to Hloc
  473.     set the locV of sprite get_NavigatorHL() to Vloc
  474.     set the visible of sprite get_NavigatorHL() to 1
  475.     updateStage()
  476.   else
  477.     set the visible of sprite get_NavigatorHL() to 0
  478.     updateStage()
  479.   end if
  480. end
  481.  
  482. on setDefaultCursor
  483.   set cursorList to getCursorList()
  484.   set counter to count(cursorList)
  485.   repeat with i = 1 to counter
  486.     set currItem to getAt(cursorList, i)
  487.     if currItem <> 0 then
  488.       set CursorCastNum to getCursor(currItem)
  489.       set the cursor of sprite i to [CursorCastNum, CursorCastNum + 1]
  490.     end if
  491.   end repeat
  492. end
  493.  
  494. on UpdateCursors theSp, theCursor
  495.   global cursorList
  496.   setAt(cursorList, theSp, theCursor)
  497.   if theCursor = 0 then
  498.     set the cursor of sprite theSp to theCursor
  499.   else
  500.     set CursorCastNum to getCursor(theCursor)
  501.     set the cursor of sprite theSp to [CursorCastNum, CursorCastNum + 1]
  502.   end if
  503. end
  504.  
  505. on setEmptyCursor
  506.   set cursorList to getCursorList()
  507.   set counter to count(cursorList)
  508.   repeat with i = 1 to counter
  509.     set currItem to getAt(cursorList, i)
  510.     if currItem <> 0 then
  511.       set the cursor of sprite i to 0
  512.       setAt(cursorList, i, 0)
  513.     end if
  514.   end repeat
  515. end
  516.  
  517. on setCursorTool int
  518.   global CursorTool
  519.   set CursorTool to int
  520. end
  521.  
  522. on initCursorCastNum
  523.   global CursorCastNum
  524.   set CursorCastNum to "400,402,404,406"
  525. end
  526.  
  527. on getCursor cursorNum
  528.   global CursorCastNum
  529.   return integer(item cursorNum of CursorCastNum)
  530. end
  531.  
  532. on initCursorList list
  533.   global cursorList
  534.   if list = 1 then
  535.     set cursorList to [2, 0, 0, 0, 0, 4, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 3, 3, 3, 3, 3, 3]
  536.   end if
  537.   setDefaultCursor()
  538. end
  539.  
  540. on getCursorList
  541.   global cursorList
  542.   return cursorList
  543. end
  544.  
  545. on ___BTNS_HANDLERS___
  546. end
  547.  
  548. on switchButt spriteNum, castDown, macroName
  549.   if getRollName() <> EMPTY then
  550.     set spNum to EMPTY
  551.     do("put get_" & getRollName() & "Sprite() into spNum")
  552.     set the castNum of sprite spNum to the number of cast getRollName()
  553.     setRollName(EMPTY)
  554.   end if
  555.   set flag to 0
  556.   set SaveCast to the castNum of sprite spriteNum
  557.   set flag to swapCast(spriteNum, SaveCast, castDown)
  558.   repeat while the stillDown
  559.     set flag to swapCast(spriteNum, SaveCast, castDown)
  560.   end repeat
  561.   if flag = 1 then
  562.     sound stop 2
  563.     do(macroName)
  564.   end if
  565. end
  566.  
  567. on swapCast spriteNum, SaveCast, castDown
  568.   if rollOver(spriteNum) then
  569.     set the castNum of sprite spriteNum to the number of cast castDown
  570.     updateStage()
  571.     return 1
  572.   else
  573.     set the castNum of sprite spriteNum to the number of cast SaveCast
  574.     updateStage()
  575.     return 0
  576.   end if
  577. end
  578.  
  579. on DisableBtn btnName, btnSprite
  580.   set the castNum of sprite btnSprite to the number of cast (btnName & "_F")
  581. end
  582.  
  583. on EnableBtn btnName, btnSprite
  584.   set the castNum of sprite btnSprite to the number of cast btnName
  585. end
  586.  
  587. on setRollName theName
  588.   global RollName
  589.   set RollName to theName
  590. end
  591.  
  592. on getRollName
  593.   global RollName
  594.   return RollName
  595. end
  596.  
  597. on Set_NOTEPADSprite theSp
  598.   global NOTEPADSprite
  599.   set NOTEPADSprite to theSp
  600. end
  601.  
  602. on Get_NOTEPADSprite
  603.   global NOTEPADSprite
  604.   return NOTEPADSprite
  605. end
  606.  
  607. on Set_GLOSSARYSprite theSp
  608.   global GLOSSARYSprite
  609.   set GLOSSARYSprite to theSp
  610. end
  611.  
  612. on Get_GLOSSARYSprite
  613.   global GLOSSARYSprite
  614.   return GLOSSARYSprite
  615. end
  616.  
  617. on Set_SoundSprite theSp
  618.   global SoundSprite
  619.   set SoundSprite to theSp
  620. end
  621.  
  622. on get_SOUNDSprite
  623.   global SoundSprite
  624.   return SoundSprite
  625. end
  626.  
  627. on Set_HelpSprite theSp
  628.   global HelpSprite
  629.   set HelpSprite to theSp
  630. end
  631.  
  632. on get_HELPSprite
  633.   global HelpSprite
  634.   return HelpSprite
  635. end
  636.  
  637. on Set_NEXTSprite theSp
  638.   global NEXTSprite
  639.   set NEXTSprite to theSp
  640. end
  641.  
  642. on get_NEXTSprite
  643.   global NEXTSprite
  644.   return NEXTSprite
  645. end
  646.  
  647. on Set_BACKSprite theSp
  648.   global BACKSprite
  649.   set BACKSprite to theSp
  650. end
  651.  
  652. on get_BACKSprite
  653.   global BACKSprite
  654.   return BACKSprite
  655. end
  656.  
  657. on Set_NavigatorHL theSp
  658.   global NavigatorHL
  659.   set NavigatorHL to theSp
  660. end
  661.  
  662. on get_NavigatorHL
  663.   global NavigatorHL
  664.   return NavigatorHL
  665. end
  666.  
  667. on Set_IndexSprite theSp
  668.   global IndexSprite
  669.   set IndexSprite to theSp
  670. end
  671.  
  672. on get_IndexSprite
  673.   global IndexSprite
  674.   return IndexSprite
  675. end
  676.  
  677. on Set_TagWDSprite theSp
  678.   global TagWdSprite
  679.   set TagWdSprite to theSp
  680. end
  681.  
  682. on Get_TagWdSprite
  683.   global TagWdSprite
  684.   return TagWdSprite
  685. end
  686.  
  687. on Set_FindSprite theSp
  688.   global FindSprite
  689.   set FindSprite to theSp
  690. end
  691.  
  692. on get_FindSprite
  693.   global FindSprite
  694.   return FindSprite
  695. end
  696.  
  697. on Set_MainSprite theSp
  698.   global MainSprite
  699.   set MainSprite to theSp
  700. end
  701.  
  702. on get_MainSprite
  703.   global MainSprite
  704.   return MainSprite
  705. end
  706.  
  707. on Set_NEXT theSp
  708.   global next
  709.   set next to theSp
  710. end
  711.  
  712. on Get_NEXT
  713.   global next
  714.   return next
  715. end
  716.  
  717. on Set_PlayDub theMode
  718.   global PlayDub
  719.   set PlayDub to theMode
  720. end
  721.  
  722. on Get_PlayDub
  723.   global PlayDub
  724.   return PlayDub
  725. end
  726.  
  727. on Set_ScreenSubject theNum
  728.   global ScreenSubject
  729.   set ScreenSubject to theNum
  730. end
  731.  
  732. on Get_ScreenSubject
  733.   global ScreenSubject
  734.   return ScreenSubject
  735. end
  736.  
  737. on set_MarkSprite theNum
  738.   global MarkSprite
  739.   set MarkSprite to theNum
  740. end
  741.  
  742. on Get_MarkSprite
  743.   global MarkSprite
  744.   return MarkSprite
  745. end
  746.  
  747. on setTimer int
  748.   global theTime
  749.   set theTime to int
  750. end
  751.  
  752. on getTimer
  753.   global theTime
  754.   return theTime
  755. end
  756.  
  757. on DisableBTNS
  758.   global DisableMode
  759.   set DisableMode to 1
  760. end
  761.  
  762. on EnableBtns
  763.   global DisableMode
  764.   set DisableMode to 0
  765. end
  766.  
  767. on get_Disabled
  768.   global DisableMode
  769.   return DisableMode
  770. end
  771.